/*import routes from './router/routes'
import storeModule from './store/store-module'
import moduleInfo from '../package.json'*/

import VueForm from '@lljj/vue-json-schema-form';
//
import "./views/css/index.scss";

import jzlPageBuilderH5     from './views/builder-h5';
import jzlPageBuilderPc     from './views/builder-pc';
// import jzlPageBuilderWeb    from './views/builder-web';

export default function(Vue) {
    Vue.config.productionTip = false

    /** 注册组件 **/
    Vue.component('VueForm',                VueForm);
    Vue.component('jzlPageBuilderH5',       jzlPageBuilderH5);
    Vue.component('jzlPageBuilderPc',       jzlPageBuilderPc);
    // Vue.component('jzlPageBuilderWeb',      jzlPageBuilderWeb);

    /* 最终添加进已有路由 */
    // let origRouter = this.$router.options.routes;
    // let layoutRouter = _.find(origRouter, { name: 'layout' });
    //
    // if(layoutRouter && layoutRouter.children) {
    //     layoutRouter.children = layoutRouter.children.concat(routes)
    // }
    //
    // this.$router.addRoutes(origRouter);
    // this.$store.registerModule(moduleInfo.name, storeModule);
    // this.$eventBus.on('visitedAbout', () => {
    //   alert('用户访问了about页面。')
    // })
    // this.$dynamicComponent.create(Logo)
}
